<template>
	<view style="overflow: hidden;background-color: #FFFFFF;">
		<view class="flex-c-c-c"
			style="position: fixed;left: 0;top: 0;width: 100vw;height:100vh;background-color: #FFFFFF;">
			<image src="../../static/icon/orderTrue.png" mode="widthFix" style="width: 360rpx;"></image>
			<text
				style="color: #333333;font-size: 44rpx;font-weight: 600;margin-top: 108rpx;">{{is==1?'预 约 成 功':is==2?'支 付 成 功':is==3?'预 约 成 功 \n\n 支 付 成 功':''}}</text>
			<text style="margin-top: 28rpx;font-size: 32rpx;color: #343434;" v-if="is==1">请于预约时间前抵达门店进行服务！</text>
			<navigator v-if="show" open-type="switchTab" url="/pages/tabBar/home/home" class="btn flex-c-c-c">
				<text style="color: #FFFFFF;font-size: 32rpx;font-weight: 500;">确定</text>
			</navigator>
			<view v-else class="flex-r-c-c" style="margin-top: 400rpx; width: 90vw;">
				<navigator open-type="switchTab" url="/pages/tabBar/home/home" style="width: 50%; height: 72rpx; line-height: 72rpx; text-align: center; border: 2rpx solid #45806E; border-radius: 36rpx 0rpx 0rpx 36rpx; ">
					<text style="color: #999;font-size: 32rpx;font-weight: 500;">返回首页</text>
				</navigator>
				<navigator url="/pages/tabBar/serviceReservation/serviceReservation" style="width: 50%; height: 76rpx; line-height: 76rpx; text-align: center; background-color: #45806E; border-radius: 0rpx 36rpx 36rpx 0rpx;">
					<text style="color: #FFFFFF;font-size: 32rpx;font-weight: 500;">立即预约</text>
				</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				is: 1,
				show: true
			}
		},
		onLoad(el) {
			this.is = el.type
			if(el?.isone){
				el.isone == 'true' ? this.show = false : this.show = true
			}
			uni.setNavigationBarTitle({
				title: el.type==1?'预约成功':el.type==2?'支付成功':el.type==3?"预约支付成功":''
			});
		},
		methods: {

		}
	}
</script>

<style lang="less" scoped>
	.btn {
		height: 72rpx;
		width: 272rpx;
		background: #45806E;
		border-radius: 50rpx;
		margin-top: 400rpx;
	}
</style>
